const express = require("express");
const dept = require("./src/com/ftg/controller/dept");
const xzt = require("./src/com/ftg/controller/xzt");
const app = express();
const bodyParser = require("body-parser"); //注意：用urlencoded方法传值时要引用body-parser包

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: false}));


app.use(express.static("./webContent"));//静态资源



app.use('/dept',dept);

app.use('/xzt',xzt);


app.listen(3000,function (){
    console.log("the server is started!!!");
});